﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" 
    xmlns:MouseCursors="clr-namespace:MediaBrowser.CustomControls.MouseCursors;assembly=MediaBrowser.CustomControls"
    x:Class="MediaBrowser.Gui.Views.PageHomeView"
    xmlns:ViewModel="clr-namespace:MediaBrowser.Gui.ViewModels"
    xmlns:Converters="clr-namespace:MediaBrowser.Gui.Converters" 
    d:DesignWidth="588.829" d:DesignHeight="432">

    <!--<UserControl.DataContext>
        <Binding Mode="OneWay" Path="Home" Source="{StaticResource Locator}"/>
    </UserControl.DataContext>-->

    <UserControl.Resources>
        <ViewModel:ViewModelLocator x:Key="Locator" d:IsDataSource="True"/>
    </UserControl.Resources>

    <UniformGrid Rows="2" Columns="2" DataContext="{Binding Mode=OneWay, Path=Home, Source={StaticResource Locator}}">

        <Viewbox x:Name="viewMovies" Margin="40,30" 
		 		 MinHeight="101" MinWidth="143" MaxHeight="250" MaxWidth="302" Stretch="Fill" 
                 MouseCursors:CursorSet.Cursor="Hand" >
            <Button Command="{Binding MoviesViewCommand}" Style="{DynamicResource ButtonStyleNav}" Width="193" Height="141">
                <StackPanel>
                    <Image Source="/MediaBrowser.Gui;Component/Images/Movie.png" Stretch="Fill" Width="101" Height="101"/>
                    <Label Content="Films" FontFamily="Calibri" FontSize="13.333" VerticalAlignment="Bottom" HorizontalAlignment="Center"/>
                </StackPanel>
            </Button>
        </Viewbox>
        <Viewbox x:Name="viewMusic" Margin="40,30" 
    		MinHeight="101" MinWidth="143" MaxHeight="250" MaxWidth="302" Stretch="Fill"
            MouseCursors:CursorSet.Cursor="Hand">
            <Button Command="{Binding MusicsViewCommand}" Style="{DynamicResource ButtonStyleNav}" Width="193" Height="141">
                <StackPanel>
                    <Image Source="/MediaBrowser.Gui;Component/Images/Music.png" Stretch="Fill" Width="101" Height="101"/>
                    <Label Content="Musiques" FontFamily="Calibri" FontSize="13.333" VerticalAlignment="Bottom" HorizontalAlignment="Center"/>
                </StackPanel>
            </Button>
        </Viewbox>
        <Viewbox x:Name="viewPictures" Margin="40,30" 
    		MinHeight="101" MinWidth="143" MaxHeight="250" MaxWidth="302" Stretch="Fill"
            MouseCursors:CursorSet.Cursor="Hand">
            <Button Command="{Binding PicturesViewCommand}" Style="{DynamicResource ButtonStyleNav}" Width="193" Height="141">
                <StackPanel>
                    <Image Source="/MediaBrowser.Gui;Component/Images/Picture.png" Stretch="Fill" Width="101" Height="101"/>
                    <Label Content="Images" FontFamily="Calibri" FontSize="13.333" VerticalAlignment="Bottom" HorizontalAlignment="Center"/>
                </StackPanel>
            </Button>
        </Viewbox>
        <Viewbox x:Name="viewBooks" Margin="40,30" 
    		MinHeight="101" MinWidth="143" MaxHeight="250" MaxWidth="302" Stretch="Fill"
            MouseCursors:CursorSet.Cursor="Hand">
            <Button Command="{Binding BooksViewCommand}" Style="{DynamicResource ButtonStyleNav}" Width="193" Height="141">
                <StackPanel>
                    <Image Source="/MediaBrowser.Gui;Component/Images/books.png" Stretch="Fill" Width="101" Height="101" />
                    <Label Content="Librairie" FontFamily="Calibri" FontSize="13.333" VerticalAlignment="Bottom" HorizontalAlignment="Center"/>
                </StackPanel>
            </Button>
        </Viewbox>

    </UniformGrid>

</UserControl>
